package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.IntradayShareData;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface IntradayShareDataDao extends
		AbstractDao<IntradayShareData, Integer> {
	
	void saveIntradayShareData(IntradayShareData intradayShareData);

	List<IntradayShareData> findIntradayShareData(int company);

	List<IntradayShareData> searchIntradayShareData(int companyId, Date fromDate,
			Date toDate);

	public Page<IntradayShareData> searchIntradayShareData(int companyId,
			Date fromDate, Date toDate, GridPramDTO gridPramDTO);
	
	/**
	 * this method will be used to delete all the records which were created before today
	 */
	public void deleteOldRecords();
}
